package cn.scm.server.multistage.controller;

import cn.scm.server.multistage.entity.ActScmManage;
import cn.scm.server.multistage.service.ActScmManageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (ActScmManage)表控制层
 *
 * @author makejava
 * @since 2020-09-23 19:44:34
 */
@RestController
@RequestMapping("actScmManage")
@Api(tags = "流程管理")
public class ActScmManageController {
    /**
     * 服务对象
     */
    @Autowired
    private ActScmManageService actScmManageService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    @ApiOperation("根据Id查询流程配置")
    public ActScmManage selectOne(String id) {
        return this.actScmManageService.queryById(id);
    }

}